package cn.itcast.dao.cargo;

import cn.itcast.domain.cargo.Factory;
import cn.itcast.domain.cargo.FactoryExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FactoryDao {
	
	//删除
    int deleteByPrimaryKey(String id);

	//保存
    int insertSelective(Factory record);

	//条件查询
    List<Factory> selectByExample(FactoryExample example);

	//id查询
    Factory selectByPrimaryKey(String id);

	//更新
    int updateByPrimaryKeySelective(Factory record);




	List<Factory> findAll();

	//新增厂商
	void save(Factory factory);

	//更新厂商
	void update(Factory factory);

	//根据id查询信息
	Factory findById(String id);

	//删除厂商
	void deleteById(String id);

	List<Factory> findByPage(@Param("begin") int begin, @Param("size") int size);
}